#ifndef GUI_H
#define GUI_H

#include "at32f403a_407.h"


#define LINE0 (0*16)
#define LINE1 (1*16)
#define LINE2 (2*16)
#define LINE3 (3*16)
#define LINE4 (4*16)
#define LINE5 (5*16)
#define LINE6 (6*16)
#define LINE7 (7*16)
#define LINE8 (8*16)
#define LINE9 (9*16)
#define LINE10 (10*16)
#define LINE11 (11*16)
#define LINE12 (12*16)
#define LINE13 (12*16)
#define LINE14 (14*16)


u16 LCD_BGR2RGB(u16 c);
void Gui_Circle(u16 X,u16 Y,u16 R,u16 fc); 
void Gui_DrawLine(u16 x0, u16 y0,u16 x1, u16 y1,u16 Color);  
void Gui_box(u16 x, u16 y, u16 w, u16 h,u16 bc);
void Gui_box2(u16 x,u16 y,u16 w,u16 h, u8 mode);
void DisplayButtonDown(u16 x1,u16 y1,u16 x2,u16 y2);
void DisplayButtonUp(u16 x1,u16 y1,u16 x2,u16 y2);
void Gui_DrawFont_GBK16(u16 x, u16 y, u16 fc, u16 bc, u8 *s);
void Gui_DrawFont_GBK24(u16 x, u16 y, u16 fc, u16 bc, u8 *s);
void Gui_DrawFont_Num32(u16 x, u16 y, u16 fc, u16 bc, u16 num) ;
void gui_draw_string(u16 x, u16 y, u16 fc, u16 bc, u8 *s);

#endif
